﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using AmazeUI.db;
using AmazeUI.Imodel.Res;

namespace Ema.Models.XtModel
{
    public class SubXtAdder : IAdder
    {
        public SubXtAdder()
        {
            this.Name = "未知用户";
        }
        public SubXtAdder(OpenUser openUser)
        {
            this.Name = openUser.nickname;
        }
        [Required(ErrorMessage = "不允许为空")]
        [DisplayName("报名人姓名")]
        public string Name { get; set; }

        public string Adder { get; set; }
        [Required(ErrorMessage = "不允许为空")]
        [StringLength(11, MinimumLength = 11)]
        [DisplayName("联系电话")]
        public string Phone { get; set; }

        public int Xtuserid { get; set; }
    }
}